#include <stdio.h>
#include <conio.h>
int main(){
	int c0=0;
	int c1=0;
	int c2=0;
	int c3=0;
	int c4=0;
	int c5=0;
	int c6=0;
	int c7=0;
	int c8=0;
	int c9=0;
	int count =1;
	int m;
	int temp;
R:;
	if(count>1000) goto E;
	temp=count;	
	count = count +1;	
	X:;
	if(temp>0)goto R;
	m=temp%10;
    temp=temp/10;
	if(m==0) goto R0;
	if(m==1) goto R1;
	if(m==2) goto R2;
	if(m==3) goto R3;
	if(m==4) goto R4;
	if(m==5) goto R5;
	if(m==6) goto R6;
	if(m==7) goto R7;
	if(m==8) goto R8;
	if(m==9) goto R9;
	
	R0:;c0=c0+1;goto X;
	R1:;c1=c1+1;goto X;
	R2:;c2=c2+1;goto X;
	R3:;c3=c3+1;goto X;
	R4:;c4=c4+1;goto X;
	R5:;c5=c5+1;goto X;
	R6:;c6=c6+1;goto X;
	R7:;c7=c7+1;goto X;
	R8:;c8=c8+1;goto X;
	R9:;c9=c9+1;goto X;
		
	E:;	
	printf("number 0: %d\n",c0);
	printf("number 1: %d\n",c1);
	printf("number 2: %d\n",c2);
	printf("number 3: %d\n",c3);
	printf("number 4: %d\n",c4);
	printf("number 5: %d\n",c5);
	printf("number 6: %d\n",c6);
	printf("number 7: %d\n",c7);
	printf("number 8: %d\n",c8);
	printf("number 9: %d\n",c9);
	
	getch();
	return 1;
}
